package com.caiyj.command;

/**
 * @Description:
 * @author:CAIYJ
 * @Date:2018/12/14 20:04
 */
public class ConcreteCommand implements Command {

    Receiver receiver;

    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.doAction();
    }
}
